﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="TourAdd.ascx.cs" Inherits="AdminX_Tour_TourAdd" %>
<%@ Register Src="../../Common/Alert.ascx" TagName="Alert" TagPrefix="uc1" %>
<%@ Register Src="../../Common/Textbox.ascx" TagName="Textbox" TagPrefix="uc2" %>
<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<div>
    <uc1:Alert ID="MessAlert1" runat="server" />
</div>
<div>
    <asp:Label ID="lblLanguage" Width="110px" CssClass="text" runat="server" Style="font-weight: 700"></asp:Label>
    <asp:DropDownList ID="ddlLanguage" runat="server" CssClass="boxnormal" AutoPostBack="true"
        OnSelectedIndexChanged="ddlLanguage_SelectedIndexChanged">
    </asp:DropDownList>
</div>
<hr style="margin-bottom:8px; margin-top:8px; border:0px;"/>
<div>
    <asp:Label ID="lblTitle" runat="server" Width="110px" CssClass="text" Style="font-weight: 700"></asp:Label>
    <asp:TextBox ID="txtTitle" runat="server" CssClass="boxlongest" Width="400px" MaxLength="150"
        ValidationGroup="Input"></asp:TextBox><span style="color: #ff3333">*</span>
</div>

<div>
    <asp:Label ID="lblCountry" runat="server" Width="110px"  CssClass="text" 
        style="font-weight: 700" ></asp:Label>
    <asp:DropDownList ID="ddlCountry" runat="server"  CssClass="boxlongest" 
            onselectedindexchanged="ddlCountry_SelectedIndexChanged" 
        AutoPostBack="True">
    </asp:DropDownList></div>
    <div>
<asp:Label ID="lblRegion" runat="server" Width="110px"  CssClass="text" 
            style="font-weight: 700" ></asp:Label>
    <asp:DropDownList ID="ddlRegion" runat="server"   AutoPostBack="true" 
            CssClass="boxlongest" onselectedindexchanged="ddlRegion_SelectedIndexChanged">
    </asp:DropDownList></div>
<div>
<div>
<asp:Label ID="lblTourCat" runat="server" Width="110px"  CssClass="text" 
        style="font-weight: 700" ></asp:Label>
    <asp:DropDownList ID="ddlTourCat" runat="server"   AutoPostBack="true" 
        CssClass="boxlongest">
    </asp:DropDownList><span style ="color :Red ;font-size:12px" >*</span></div>

<div>
<asp:Label ID="lblDuration" runat="server" CssClass="text" Width="110px" Style="font-weight: 700"></asp:Label>
    <asp:DropDownList ID="ddlDuration" runat="server" CssClass="boxlongest"></asp:DropDownList>
<hr style="margin-bottom:8px; margin-top:8px; border:0px;"/></div>
<div>
    <asp:Label ID="lblStartDestination" runat="server" Width="110px" CssClass="text"
        Style="font-weight: 700"></asp:Label>
    <asp:DropDownList ID="ddlStartDestination" runat="server" CssClass="boxlongest">
    </asp:DropDownList>
</div>
<div>
    <asp:Label ID="lblArrivedDestination" runat="server" CssClass="text" Width="110px"
        Style="font-weight: 700"></asp:Label>
    <asp:DropDownList ID="ddlArrivedDestination" runat="server" CssClass="boxlongest">
    </asp:DropDownList>
</div>
<div>
    <asp:Label ID="lblSaleOff" runat="server" Width="110px" CssClass="text" Style="font-weight: 700"></asp:Label>
    <asp:DropDownList ID="ddlSaleOff" runat="server" CssClass="boxlongest">
    </asp:DropDownList>
</div>
<hr style="margin-bottom:8px; margin-top:8px; border:0px;"/>
<div>
    <asp:Label ID="lblImage" Width="110px" runat="server" CssClass="text" Style="font-weight: 700"></asp:Label>
    <input id="iptImage" runat="server" type="file" size="30" class="boxlongest" onclick="return iptImage_onclick()" />
    <div style="margin-left: 140px">
        <asp:Image runat="server" ID="imgImage" Height="105px" BorderWidth="1px" BorderColor="gray" /></div>
</div>
<hr style="margin-bottom:8px; margin-top:8px; border:0px;"/>
<div>
    <asp:Label ID="lblDestination" Width="110px" runat="server" CssClass="text" Style="font-weight: 700"></asp:Label>
    <asp:Repeater ID="rpt_TourDestination" runat="server" OnItemDataBound="rpt_TourDestination_ItemDataBound">
        <ItemTemplate>
            <asp:Label ID="lblDestinationID" runat="server" Visible="false" />
            &nbsp;&nbsp;&nbsp;&nbsp;<asp:CheckBox ID="chkDestination" runat="server" ForeColor="black" />
        </ItemTemplate>
    </asp:Repeater>
</div>
<hr style="margin-bottom:8px; margin-top:8px; border:0px;"/>
<div>
    <asp:Label ID="lblTransport" Width="110px" runat="server" CssClass="text" Style="font-weight: 700"></asp:Label>
    <asp:Repeater ID="rpt_TourTransport" runat="server" OnItemDataBound="rpt_TourTransport_ItemDataBound">
        <ItemTemplate>
            <asp:Label ID="lblTourTransportID" runat="server" Visible="false" />
            &nbsp;&nbsp;&nbsp;&nbsp;<asp:CheckBox ID="chkTourTransport" runat="server" ForeColor="black" />
        </ItemTemplate>
    </asp:Repeater>
</div>
<hr style="margin-bottom:8px; margin-top:8px; border:0px;"/>
<div>
    <asp:Label ID="lblTourPopular" Width="110px" runat="server" CssClass="text" Style="font-weight: 700"></asp:Label>
    <asp:Repeater ID="rptTourPopular" runat="server" onitemdatabound="rptTourPopular_ItemDataBound">
        <ItemTemplate>
            <asp:Label ID="lblTourPopularID" runat="server" Visible="false" />
            &nbsp;&nbsp;&nbsp;&nbsp;<asp:CheckBox ID="chkTourPopular" runat="server" ForeColor="black" />
        </ItemTemplate>
    </asp:Repeater>
</div>

<br /><br />
<div style="width: 100%">
    <table id="tblGallery" runat="server">
        <tr>
            <td>
                <asp:Label ID="lblDetail" runat="server" CssClass="text" Text="ẢNH CHI TIẾT" Font-Bold="true"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:DataList ID="dtlGallery" runat="server" RepeatColumns="5" HorizontalAlign="Left"
                    OnItemDataBound="dtlGallery_ItemDataBound" OnItemCommand="dtlGallery_ItemCommand">
                    <ItemTemplate>
                        <table>
                            <tr>
                                <td>
                                    <asp:Image ID="imgImage" runat="server" Width="160px" Height="100px" BorderColor="gray"
                                        BorderWidth="1px" />
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: center">
                                    <asp:LinkButton ID="lnkDelete" runat="server" Text="Xóa" CommandName="Delete" CausesValidation="false"
                                        ForeColor="red"></asp:LinkButton>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:DataList>
            </td>
        </tr>
    </table>
</div>

<div>
    <asp:Label ID="lblPicture1" runat="server" Width="90px" CssClass="text" 
        Text="Ảnh 1"></asp:Label>
    <input id="iptFile1" runat="server" type="file" size="30" class="boxlongest" /><br />
    <asp:Label ID="lblPicture2" runat="server" Width="90px" CssClass="text" 
        Text="Ảnh 2"></asp:Label>
    <input id="iptFile2" runat="server" type="file" size="30" class="boxlongest" /><br />
    <asp:Label ID="lblPicture3" runat="server" Width="90px" CssClass="text" 
        Text="Ảnh 4"></asp:Label>
    <input id="iptFile3" runat="server" type="file" size="30" class="boxlongest" /><br />
    <asp:Label ID="lblPicture4" runat="server" Width="90px" CssClass="text" 
        Text="Ảnh 5"></asp:Label>
    <input id="iptFile4" runat="server" type="file" size="30" class="boxlongest" /><br />
    <asp:Label ID="lblPicture5" runat="server" Width="90px" CssClass="text" 
        Text="Ảnh 6"></asp:Label>
    <input id="iptFile5" runat="server" type="file" size="30" class="boxlongest" /><br />
    <span style="color: #cc0000"><em>(*Size tốt nhất 800x500px)<br />
        Xin vui lòng Resize ảnh trước khi upload để tối ưu tốc độ hiển thị. </em></span>
</div>


<hr style="margin-bottom:8px; margin-top:8px; border:0px;"/>
<div style="padding: 10px 0px 0px 0px">
    <b>
        <asp:Label ID="lblInitContent" runat="server" Width="110px" CssClass="text"></asp:Label><span
            style="color: #ff3333">*</span></b>
</div>

<div style="padding: 0px">
    <asp:TextBox ID="txtInitContent" runat="server" CssClass="textbox_multiline" MaxLength="1999"
        TextMode="MultiLine" ValidationGroup="Input"></asp:TextBox>
</div>
<div style="padding: 10px 0px 0px 0px">
    <b><asp:Label ID="Label1" Width="110px" runat="server" Text ="Video (Standard size: width:670px - height: 230px)" CssClass="text"></asp:Label><span style="color: #ff3333">*</span></b>
</div>
<div>
    <uc2:Textbox ID="FTBTripHighlight" runat="server"></uc2:Textbox>
</div>

<div style="padding: 10px 0px 0px 0px">
    <b><asp:Label ID="lblContent" Width="110px" runat="server" CssClass="text"></asp:Label><span style="color: #ff3333">*</span></b>
</div>
<div>
    <uc2:Textbox ID="FTBContent" runat="server"></uc2:Textbox>
</div>
<div style="padding: 10px 0px 0px 0px">
    <b><asp:Label ID="Label2" Width="110px" runat="server" Text="Price" CssClass="text"></asp:Label><span style="color: #ff3333">*</span></b>
</div>
<div>
    <uc2:Textbox ID="FTBPrice" runat="server"></uc2:Textbox>
</div>
<br />
<div>
    <uc2:Textbox ID="FTBVideoLink" runat="server"></uc2:Textbox>
</div>
<div style="padding: 5px 0px 5px 0px">
    <asp:CheckBox ID="chkDisplayOrder" runat="server" CssClass="text" Checked="True" />&nbsp;&nbsp;
    <span style="width: 50px">
        <asp:DropDownList ID="ddlPriority" runat="server" CssClass="boxsmall">
        </asp:DropDownList>
    </span>
    <asp:CheckBox ID="chkActive" runat="server" CssClass="text" Checked="true"  Width="120px" />
    <asp:CheckBox ID="chkIsCustomerTour" runat="server" CssClass="text" Checked="true" />
</div>
<div style="padding: 20px 20px 0px 0px">
    <asp:Button ID="btnSave" runat="server" Width="80px" OnClick="btnSave_Click1" ValidationGroup="Input" />
    &nbsp;&nbsp;&nbsp;
    <asp:Button ID="btnCancel" runat="server" Width="80px" OnClick="btnCancel_Click" />
</div>
<asp:RequiredFieldValidator ID="rfvTitle" runat="server" SetFocusOnError="true" ControlToValidate="txtTitle"
    Display="None" ValidationGroup="Input" Text="*"></asp:RequiredFieldValidator>

<asp:RequiredFieldValidator ID="rfvInitContent" runat="server" SetFocusOnError="true"
    ControlToValidate="txtInitContent" Display="None" ValidationGroup="Input" Text="*"></asp:RequiredFieldValidator>
<asp:ValidationSummary ID="ValidationSummary4" ShowMessageBox="true" runat="server"
    ValidationGroup="Input" ShowSummary="False" />
